<template>
	<div @click="open">
		<slot></slot>
	</div>
</template>

<script>
	export default {
		props: ['url'],
		methods: {
			open() {
				const env = weex.config.env || WXEnvironment

				if(env.platform === 'Web') {
					window.open(this.url)
					return
				}
				this.jump(`/article${this.url}`)
			}
		}
	}
</script>